package com.ac.app.web.action.pick;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ac.app.dm.PickRecord;
import com.ac.app.web.view.PkRecordView;
import com.caac.core.web.action.BaseAction;
import com.caac.core.web.form.BaseForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;


public class ViewPkRecordAction extends BaseAction {
    protected ActionForward doExecute(ActionMapping mapping,
                                      BaseForm form,
                                      HttpServletRequest request,
                                      HttpServletResponse response)
            throws Exception {
    	String id=request.getParameter("id");
    	PickRecord dm=(PickRecord)this.getBaseManager().getObjectById(PickRecord.class, id);
    	PkRecordView dmView=new PkRecordView();
    	dmView.setPickRecord(dm);
    	request.setAttribute("dmView", dmView);
        return forward(mapping);
    }
}
